@charset "UTF-8";
@function calc-percent($target, $context) {
  @return $target/$context * 100%;
}

// px转rem
@function px2rem($px, $base-font-size: $baseDevice / $device * $baseFontSize) {
  @if (unitless($px)) {
    @warn "Assuming #{$px} to be in pixels, attempting to convert it into pixels for you";
    @return px2rem($px + 0px); // That may fail.
  }
  @else if (unit($px)==rem) {
    @return $px;
  }
  @return ($px / $base-font-size) * 1rem;
}

@mixin border-bottom($color, $radius:0) {
  position: relative;
  &:after {
    content: "";
    bottom: 0;
    position: absolute;
    width: 100%;
    left: 0;
    transform: scaleY(0.5);
    transform-origin: 0 0;
    border-top: 1px solid $color;
    border-radius: $radius;
  }
}

// 背景图片
@mixin bg-image($url) {
  background-image: url($url + "@2x.png");
  @media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
    background-image: url($url + "@3x.png")
  }
}

// 不换行
@mixin no-wrap() {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

// 扩展点击区域
@mixin extend-click() {
  position: relative;
  &:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }
}

// 背景图片地址和大小
@mixin bis($url) {
  background-image: url($url);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@mixin borderRadius($radius) {
  -webkit-border-radius: $radius;
  -moz-border-radius: $radius;
  -ms-border-radius: $radius;
  -o-border-radius: $radius;
  border-radius: $radius;
}

//定位全屏
@mixin allcover {
  position: absolute;
  top: 0;
  right: 0;
}

//定位上下左右居中
@mixin center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

//定位上下居中
@mixin ct {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

//定位上下居中
@mixin cl {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

//宽高
@mixin wh($width, $height) {
  width: $width;
  height: $height;
}

//字体大小、行高、字体
@mixin font($size, $line-height, $family: 'Microsoft YaHei') {
  font: #{$size}/#{$line-height} $family;
}

//字体大小，颜色
@mixin sc($size, $color) {
  font-size: $size;
  color: $color;
}

//flex 布局和 子元素 对其方式
@mixin fj($type: space-between) {
  display: flex;
  justify-content: $type;
}

//用于移动端限制行数，并且内容超出范围，后面显示位。。。
@mixin xz($line-height, $line) {
  display: -webkit-box;
  line-height: $line-height;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: $line;
  -webkit-box-orient: vertical;
}

//1像素边框
@mixin border($border-size, $border-color) {
  position: relative;
  &:after {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    width: 200%;
    height: 200%;
    border: $border-size solid $border-color;
    transform: scale(.5) translate3d(-50%, -50%, 0);
    box-sizing: border-box;
  }
}

@media screen and (min-width: 360px) {
  html {
    font-size: (360/320)*$baseFontSize;
  }
}

@media screen and (min-width: 375px) {
  html {
    font-size: (375/320)*$baseFontSize;
  }
}

@media screen and (min-width: 414px) {
  html {
    font-size: (414/320)*$baseFontSize;
  }
}

@media screen and (min-width: 480px) {
  html {
    font-size: (480/320)*$baseFontSize;
  }
}

@media screen and (min-width: 640px) {
  html {
    font-size: (640/320)*$baseFontSize;
  }
}

/* reset.css V1.6  Start*/

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dt,
dd,
ul,
ol,
li,
form,
button,
input,
textarea,
th,
td {
  font-weight: normal;
  margin: 0;
  padding: 0;
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
i {
  font: normal 12px "Helvetica Neue", "Microsoft YaHei", Helvetica, STHeiTi, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

ul,
ol,
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: #333;
}

a:hover {
  text-decoration: none;
}

img {
  vertical-align: top;
  border: 0;
}

button,
input,
textarea {
  font-size: 100%;
  vertical-align: middle;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

div,
a {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

html {
  font-size: $baseFontSize;
}

#__nuxt, #__layout {
  height: 100%;
}


@media screen and (min-width: 360px) {
  html {
    font-size: (360/320)*$baseFontSize;
  }
}

@media screen and (min-width: 375px) {
  html {
    font-size: (375/320)*$baseFontSize;
  }
}

@media screen and (min-width: 414px) {
  html {
    font-size: (414/320)*$baseFontSize;
  }
}

@media screen and (min-width: 480px) {
  html {
    font-size: (480/320)*$baseFontSize;
  }
}

@media screen and (min-width: 640px) {
  html {
    font-size: (640/320)*$baseFontSize;
  }
}

/*公共类*/

.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  *zoom: 1;
  /*IE/7/6*/
}

.wp {
  width: 1200px;
  margin: 0 auto;
}

.fl {
  float: left
}

.fr {
  float: right
}

.al {
  text-align: left
}

.ac {
  text-align: center
}

.ar {
  text-align: right
}

.hide {
  display: none
}

.animated {
  visibility: visible !important;
  animation-duration: 2s;
  animation-fill-mode: both;
  animation-timing-function: linear;
}

.animated.infinite {
  animation-iteration-count: infinite;
}

@keyframes fadeIn-left {
  0% {
    transform: translate(-25px, 0);
  }
  100% {
    transform: translate(25px, 0);
  }
}

.fadeIn-left {
  animation-name: fadeIn-left;
}

@keyframes fadeIn-left1 {
  0% {
    transform: translate(-10px, 0);
  }
  50% {
    transform: translate(10px, 0);
  }
  100% {
    transform: translate(-10px, 0);
  }
}

.fadeIn-left1 {
  animation-name: fadeIn-left1;
}

@keyframes fadeIn-top {
  0% {
    transform: translate(-50%, 25px) rotate(-90deg);
  }
  100% {
    transform: translate(-50%, -25px) rotate(-90deg);
  }
}

.fadeIn-top {
  animation-name: fadeIn-top;
}

@keyframes fadeIn-bottom {
  0% {
    transform: translate(-50%, -25px) rotate(90deg);
  }
  100% {
    transform: translate(-50%, 25px) rotate(90deg);
  }
}

.fadeIn-bottom {
  animation-name: fadeIn-bottom;
}

@keyframes fadeIn-rotate {
  0% {
    opacity: 0;
    transform: translate(0, -50%) rotateY(0deg);
  }
  100% {
    opacity: 1;
    transform: translate(0, -50%) rotateY(720deg);
  }
}

.fadeIn-rotate {
  animation-name: fadeIn-rotate;
}

@keyframes fadeIn-gotop {
  0% {
    opacity: 0;
    transform: translate(0, 50%);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.fadeIn-gotop {
  animation-name: fadeIn-gotop;
}

/* reset.css V1.6  End */

// page结构以及CSS样式
// *******************
// ********************
// ********************
// HTML结构
// <div class="paged">
//  <a href="#">首页</a>
//  <a class="">上一页</a>
//  <span class="current">1</span>
//  <a href="#">2</a>
//  <a class="" href="#">下一页</a>
//  <a href="#">尾页</a>
// </div>
// ********************
// ********************
// ********************
// CSS样式
.paged a,
.paged .p_info,
.paged .current {
  display: inline-block;
  zoom: 1;
  *display: inline;
  margin: 0px 3px;
  padding: 13px 19px;
  font-size: 14px;
  text-align: center;
  background: #FFF;
  color: #555;
}

.paged .current,
.paged a:hover {
  background: #C7000B;
  color: #FFF;
}

.paged .one {
  padding-left: 54px;
  padding-right: 54px;
}
